﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OxyPlotTest
{
    using System;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;

    public class MainViewModel3
    {
        public MainViewModel3()
        {
            TimeSpan start = new TimeSpan(0, 0, 0, 0);
            TimeSpan end = new TimeSpan(0, 24, 0, 0);
            double increment = 3600;
            
            var r = new Random(13);
            this.Data2 = new Collection<TimeValue>();
            var current = start;
            while (current <= end)
            {
                this.Data2.Add(new TimeValue { Time = current, Value = r.NextDouble() });
                current = current.Add(new TimeSpan(0, 0, (int)increment));
            }

        }

        public Collection<TimeValue> Data2 { get; set; }
    }

 
    
    public class TimeValue
    {
        public TimeSpan Time { get; set; }
        public double Value { get; set; }
    }
}
